<?php
/*
Plugin Name: Chapter 3 - Individual Options.
Plugin URI: http://wordpress.org/extend/plugins/hello-dolly/
Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page.
Author: Manh Nguyen
Version: 1.6
Author URI: http://hatrangcorp.com/
*/
register_activation_hook(__FILE__, 'ch3io_set_default_options');
function ch3io_set_default_options()
{
	if(get_option('ch3io_ga_account_name') === false)
	{
		add_option('ch3io_ga_account_name', 'UA-000000-0');
		add_option('ch3io_track_outgoing_links', 'false');
		add_option('ch3io_version', '1.1');
	}
	elseif(get_option('ch3io_version') < 1.1)
	{
		add_option('ch3io_track_outgoing_links', 'false');
		update_option('ch3io_version', '1.1');
	}
}
?>